package com.xing.oauth.common.response;

public enum  ResultCode {

    SUCCESS(0,"成功"),
    FAILD(1,"失败"),
    CLIENT_CHECKING_FAIL(100010,"客户端验证失败，客户端id或客户端secret错误"),
    EXPIRED_ACCESSTOKEN_CREDENTIAL(10003,"授权码不存在或已过期"),
    EXPIRED_REFRESHTOKEN_CREDENTIAL(10004,"授权凭证RT已过期或失效"),
    INTERNAL_ERROR(10001, "内部错误"),
    UNAUTHORIZED(1002,"未经授权或权限不够");
//    expired _caccesstoken_credential



    /**
     * 操作代码
     */
    int code;

    /**
     * 提示信息
     */
    String message;

    ResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public String message(){
        return message;
    }
    public int code(){
        return code;
    }
}
